import request from '@/utils/http'

export class ProjectService {

  static pages(params:any) {
    return request.post<any>({
      url: '/visual/project/pages',
  	params
    })
  }
  
  static save(params:any) {
    return request.post<any>({
      url: '/visual/project/save',
  	params
    })
  }
  
  static delete(id:string) {
    return request.del<any>({
      url: '/visual/project/detain/'+id,
    })
  }

  static savePages(id:string,params:any) {
    return request.post<any>({
      url: '/visual/project/'+id+'/pages/save',
  	params
    })
  }

  static getPagesByProjectId(id:string) {
    return request.get<any>({
      url: '/visual/project/'+id+'/pages'
    })
  }
  
}
